﻿using System;
using System.Collections.ObjectModel;
using VisualWip.Core.Interfaces;

namespace VisualWip.Core
{
    public class NoQuery : IQuery
    {
        public static IQuery Query
        {
            get { return new NoQuery(); }
        }

        #region IQuery Members

        public string QueryText
        {
            get { return String.Empty; }
            set { }
        }

        public Collection<WorkItem> GetWork()
        {
            return new Collection<WorkItem>();
        }

        public int GetWorkCount()
        {
            return 0;
        }

        #endregion

        public PersistenceTree Persist(string name)
        {
            return new PersistenceTree(name,this);
        }

        public void Load(PersistenceTree settings)
        {
        }
    }
}